#ifndef KEY_H
#define KEY_H
#include "bs32f1xx_ll_gpio.h"
#include "bs32f1xx_ll_exti.h"

#define KEY_UP_PORT       	 	GPIOC
#define KEY_UP_PIN        	 	LL_GPIO_PIN_13
#define KEY_UP_INTER_LINE13  	LL_EXTI_LINE_13

#define KEY_0_PORT    			GPIOB
#define KEY_0_PIN     			LL_GPIO_PIN_4
#define KEY_0_INTER_LINE4  		LL_EXTI_LINE_4

#define KEY_1_PORT    			GPIOB
#define KEY_1_PIN     			LL_GPIO_PIN_11
#define KEY_1_INTER_LINE11  	LL_EXTI_LINE_11


void key_init(void);
uint16_t get_key_event(void);
#endif
